from django.contrib import admin

from hony.models import ArticleModels, AuthorModel, SeriesModel, StationModel

# Register your models here.

class ArticleAdmin(admin.ModelAdmin):
    fields = [ "title", "content", "author", "tags", "series", "station", "series_sort", ]
    list_display = ['title', "author", "station", "series", "series_sort"]
    list_filter = ['station', 'series']
    list_editable = ['series_sort']
    ordering = ['series_sort']

admin.site.register(ArticleModels, ArticleAdmin)
admin.site.register(AuthorModel)
admin.site.register(SeriesModel)
admin.site.register(StationModel)

